﻿using DataBaseLib.Entities.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataBaseLib.Entities
{
    public class UserInfo : BaseEntity
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [Column(TypeName = "nvarchar(100)")]
        public string Name
        {
            get; set;
        }
        /// <summary>
        /// 密码
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        public string Passwored
        {
            get; set;
        }
        /// <summary>
        /// 性别
        /// </summary>
        public int Gender
        {
            get; set;
        }

        /// <summary>
        /// 年龄
        /// </summary>
        public int Age
        {
            get; set;
        }
        /// <summary>
        /// 手机
        /// </summary>
        [Column(TypeName = "char(11)")]
        public string Phone
        {
            get; set;
        }
        /// <summary>
        /// 地址
        /// </summary>
        [Column(TypeName = "nvarchar(150)")]
        public string Address
        {
            get; set;
        }

        /// <summary>
        /// 微信
        /// </summary>
        [Column(TypeName = "nvarchar(150)")]
        public string WeChat
        {
            get; set;
        }

        /// <summary>
        /// QQ
        /// </summary>
        [Column(TypeName = "nvarchar(150)")]
        public string QQ
        {
            get; set;
        }

        /// <summary>
        /// 用户级别
        /// </summary>
        public int Level
        {
            get; set;
        }
        /// <summary>
        /// 状态 0 无效 1 有效 2 临时 
        /// </summary>
        public int Status
        {
            get; set;
        }
    }
}
